﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		mc:Ignorable="d"
        x:Class="Opds_Viewer.MainWindow"
        Title="OPDS Viewer"
        WindowStartupLocation="CenterScreen"
        Icon="Resources\Images\logo.ico"
        DataContext="{Binding Main, Mode=OneWay, Source={StaticResource Locator}}" Width="1024" Height="768"
		Background="{DynamicResource MainWindowBackground}"
        Style="{DynamicResource MainWindowStyle}">
    
    <Grid Margin="-6,-37.5,-6,-4.5" x:Name="LayoutRoot">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="250"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	
    	<Grid.RowDefinitions>
    		<RowDefinition Height="50"/>
    		<RowDefinition Height="65.5"/>
    		<RowDefinition/>
    	</Grid.RowDefinitions>
		
        <Grid Grid.Row="0" x:Name="Header" Background="{DynamicResource MainColorApplication}" Grid.ColumnSpan="2" Panel.ZIndex="1" Margin="0,0,0,-1">
        	<Grid x:Name="Logo" HorizontalAlignment="Left" Height="73" Margin="15,0,0,-60" VerticalAlignment="Center" Width="200" d:LayoutOverrides="GridBox" Background="{DynamicResource WhiteLogo}"/>        	      
		</Grid>
		
		<Grid Grid.Row="1" Grid.ColumnSpan="2" x:Name="Menu" Background="{DynamicResource MainColorApplication}">
			<Menu HorizontalAlignment="Left" Margin="250,0,0,-1" VerticalAlignment="Bottom" Style="{DynamicResource Menu}">
                <MenuItem Header="Home" Style="{DynamicResource MenuItem}" Command="{Binding ShowHomeView}" IsChecked="{Binding IsHomeActive}"/>
				<Separator Style="{DynamicResource MenuSeparator}"/>
                <MenuItem Header="Settings" Style="{DynamicResource MenuItem}" Command="{Binding ShowSettingsView}" IsChecked="{Binding IsSettingsActive}"/>
				<Separator Style="{DynamicResource MenuSeparator}"/>
                <MenuItem Header="About" Style="{DynamicResource MenuItem}" Command="{Binding ShowAboutView}" IsChecked="{Binding IsAboutActive}"/>
			</Menu>        	      
		</Grid>
			
        <Grid x:Name="Selection" Grid.Row="2" Background="{DynamicResource SelectionGridColor}">
        	<Expander HorizontalAlignment="Left" Header="My selection" Width="250" Margin="0,40,0,0" Height="529.54" VerticalAlignment="Top">
        		<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Text="In the next version ;)" HorizontalAlignment="Right"/>
        	</Expander>
        	<Button Content="Button" Margin="56,0,61,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
        </Grid>
		
        <ContentControl Content="{Binding CurrentPage}" Grid.Row="2" x:Name="Content" Grid.Column="1" Margin="6" />
		
    </Grid>  
	
</Window>
